#ifndef ROOT_H
#define ROOT_H

#include <QDialog>
#include "ui_root.h"
#include "dialog.h"

namespace Ui {
class root;
}

//public继承Dialog
class root : public QDialog
{
    Q_OBJECT

public:
    explicit root(QWidget *parent = nullptr);
    ~root();
    Dialog* getDialog() {return dialog;}

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::root *ui;
    Dialog* dialog=new Dialog();
};

#endif // ROOT_H
